@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="container-fluid">

            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box">
                        <div class="page-title-right">
                            <ol class="breadcrumb m-0">
                                <li class="breadcrumb-item"><a href="{{ route('bugs.index') }}"><font
                                                style="vertical-align: inherit;"><font style="vertical-align: inherit;">BUG时间线</font></font></a>
                                </li>
                                <li class="breadcrumb-item"><a href="{{ route('bugs.create') }}"><font
                                                style="vertical-align: inherit;"><font style="vertical-align: inherit;">反馈bug</font></font></a>
                                </li>
                                <li class="breadcrumb-item active"><font style="vertical-align: inherit;"><font
                                                style="vertical-align: inherit;">BUG详情页</font></font></li>
                            </ol>
                        </div>
                        <h4 class="page-title"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">BUG详情页</font></font></h4>
                    </div>
                </div>
            </div>
            <!-- end page title -->
@include('layouts._success')
            <div class="row">
                <div class="col-12">
                    <div class="text-center">
                        <i class="h1 mdi mdi-comment-multiple-outline text-muted"></i>
                        <h3 class="mb-3"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">解决他的bug</font></font>
                        </h3>
                        <p class="text-muted"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">我们的理念是：解决他的bug，实现你的价值！</font></font><br><font
                                    style="vertical-align: inherit;"><font style="vertical-align: inherit;">Our
                                    philosophy is: solve his bugs and realize your value！</font></font></p>
                        <form id="demo-form" data-parsley-validate="" action="{{route('bugs.update',$data->id)}}"
                              method="POST">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <input type="hidden" name="_method" value="PUT">
                            <input type="hidden" name="status" value="1">
                            <input type="hidden" name="recipient" value="{{ Auth::user()->id }}">
                            <button type="submit" class="btn btn-primary waves-effect waves-light"><font
                                        style="vertical-align: inherit;"><font
                                            style="vertical-align: inherit;"> 解决此bug</font></font></button>

                            <a class="btn btn-secondary waves-effect" href="{{ route('bugs.index') }}"><font
                                        style="vertical-align: inherit;"><font
                                            style="vertical-align: inherit; color: snow">来日再战 </font></font></a>
                        </form>

                    </div>
                </div><!-- end col -->
            </div><!-- end row -->


            <div class="row pt-10" style="margin-top: 100px;">
                <div class="col-lg-10 offset-lg-1">
                    <!-- Question/Answer -->
                    <div>
                        <div class="faq-question-q-box"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">J.</font></font></div>
                        <h4 class="faq-question" data-wow-delay=".1s"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">一句话描述？</font></font></h4>
                        <p class="faq-answer mb-4"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">{{ $data->title }}</font></font>
                        </p>
                    </div>
                    <div>
                        <div class="faq-question-q-box"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">J.</font></font></div>
                        <h4 class="faq-question" data-wow-delay=".1s"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">反馈人及时间</font></font></h4>
                        <p class="faq-answer mb-4"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">{{ $data->author }}{{ $data->created_at }}</font></font>
                        </p>
                    </div>
                    <div>
                        <div class="faq-question-q-box"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">J.</font></font></div>
                        <h4 class="faq-question" data-wow-delay=".1s"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">状态</font></font></h4>
                        <p class="faq-answer mb-4">
                            <font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">
                                    @if($data->status=='0')
                                        <span class="badge badge-danger badge-pill"><font
                                                    style="vertical-align: inherit;"><font
                                                        style="vertical-align: inherit;">待解决</font></font></span>
                                    @elseif($data->status=='1')
                                        <span class="badge badge-purple badge-pill"><font
                                                    style="vertical-align: inherit;"><font
                                                        style="vertical-align: inherit;">解决中</font></font></span>
                                    @elseif($data->status=='2')
                                        <span class="badge badge-purple badge-pill"><font
                                                    style="vertical-align: inherit;"><font
                                                        style="vertical-align: inherit;">被尝试</font></font></span>
                                    @endif
                                </font></font>
                        </p>
                    </div>
                    <div>
                        <div class="faq-question-q-box"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">J.</font></font></div>
                        <h4 class="faq-question" data-wow-delay=".1s"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">bug详情</font></font></h4>
                        <p class="faq-answer mb-4"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">{{ $data->content }}</font></font>
                        </p>
                    </div>
                    <div>
                        <div class="faq-question-q-box"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">J.</font></font></div>
                        <h4 class="faq-question" data-wow-delay=".1s"><font style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">附件查看及下载</font></font></h4>
                        <p class="faq-answer mb-4">
                            @if(!empty($data->other))
                                <a class="btn btn-link waves-effect" href="{{ route('download',$data->other) }}"><font
                                            style="vertical-align: inherit; color: #1c95d4"><font
                                                style="vertical-align: inherit;">点击下载附件</font></font></a>
                            @endif
                        </p>
                    </div>

                </div>
            </div>
            <!-- end row -->


        </div>
    </div>
@endsection
